{% extends "left.html" %}
{% block ucontent %}
                    <div itemtype="http://schema.org/Article" itemscope="" id="user-right"
                         class="widget-content single-post">
                        <div id="post-header">
                            <h1 itemprop="headline" class="page-title">发布文章</h1>
                            <div class="poptip">
                                <span class="poptip-arrow poptip-arrow-left"><em>◆</em><i>◆</i>
                                </span>网站更新了，如果发现什么问题，欢迎反馈给火柴（站内信息和编辑资料页面的问题已知）
                            </div>
                        </div>


<script type='text/javascript' src='/static/mathemes/plupload.full.min.js?ver=1427781470'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var pluploadL10n = {"queue_limit_exceeded":"\u60a8\u5411\u961f\u5217\u4e2d\u6dfb\u52a0\u7684\u6587\u4ef6\u8fc7\u591a\u3002","file_exceeds_size_limit":"%s\u8d85\u8fc7\u4e86\u7ad9\u70b9\u7684\u6700\u5927\u4e0a\u4f20\u9650\u5236\u3002","zero_byte_file":"\u6587\u4ef6\u4e3a\u7a7a\uff0c\u8bf7\u9009\u62e9\u5176\u5b83\u6587\u4ef6\u3002","invalid_filetype":"\u4e0d\u5141\u8bb8\u4e0a\u4f20\u8be5\u7c7b\u578b\u7684\u6587\u4ef6\uff0c\u8bf7\u9009\u62e9\u5176\u5b83\u6587\u4ef6\u3002","not_an_image":"\u8be5\u6587\u4ef6\u4e0d\u662f\u56fe\u50cf\uff0c\u8bf7\u4f7f\u7528\u5176\u5b83\u6587\u4ef6\u3002","image_memory_exceeded":"\u8fbe\u5230\u5185\u5b58\u9650\u5236\uff0c\u8bf7\u4f7f\u7528\u5c0f\u4e00\u4e9b\u7684\u6587\u4ef6\u3002","image_dimensions_exceeded":"\u8be5\u6587\u4ef6\u8d85\u8fc7\u4e86\u6700\u5927\u5927\u5c0f\uff0c\u8bf7\u4f7f\u7528\u5176\u5b83\u6587\u4ef6\u3002","default_error":"\u4e0a\u4f20\u65f6\u53d1\u751f\u4e86\u9519\u8bef\u3002\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002","missing_upload_url":"\u914d\u7f6e\u6709\u8bef\u3002\u8bf7\u8054\u7cfb\u60a8\u7684\u670d\u52a1\u5668\u7ba1\u7406\u5458\u3002","upload_limit_exceeded":"\u60a8\u53ea\u80fd\u4e0a\u4f20\u4e00\u4e2a\u6587\u4ef6\u3002","http_error":"HTTP\u9519\u8bef\u3002","upload_failed":"\u4e0a\u4f20\u5931\u8d25\u3002","big_upload_failed":"\u8bf7\u5c1d\u8bd5\u4f7f\u7528%1$s\u6807\u51c6\u7684\u6d4f\u89c8\u5668\u4e0a\u4f20\u5de5\u5177%2$s\u6765\u4e0a\u4f20\u8fd9\u4e2a\u6587\u4ef6\u3002","big_upload_queued":"%s\u8d85\u51fa\u4e86\u60a8\u6d4f\u89c8\u5668\u5bf9\u9ad8\u7ea7\u591a\u6587\u4ef6\u4e0a\u4f20\u5de5\u5177\u6240\u505a\u7684\u5927\u5c0f\u9650\u5236\u3002","io_error":"IO\u9519\u8bef\u3002","security_error":"\u5b89\u5168\u9519\u8bef\u3002","file_cancelled":"\u6587\u4ef6\u5df2\u53d6\u6d88\u3002","upload_stopped":"\u4e0a\u4f20\u505c\u6b62\u3002","dismiss":"\u4e0d\u518d\u663e\u793a","crunching":"\u5904\u7406\u4e2d\u2026","deleted":"\u79fb\u52a8\u5230\u56de\u6536\u7ad9\u3002","error_uploading":"\u201c%s\u201d\u4e0a\u4f20\u5931\u8d25\u3002"};
/* ]]> */
</script>
<script type='text/javascript' src='/static/mathemes/handlers.min.js?ver=1427781470'></script>
<script type='text/javascript' src='http://www.wpdaxue.com/wp-content/plugins/uc/assets/js/jquery-ui-timepicker-addon.js?ver=1427781470'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var wpuf_frontend_upload = {"confirmMsg":"\u60a8\u786e\u5b9a\u8981\u8fd9\u6837\u505a\u5417\uff1f","nonce":"34562359e4","ajaxurl":"/uploadfile","fileSizeLimit":"\u4f60\u4e0a\u4f20\u5230\u8be5\u9009\u9879\u7684\u6587\u4ef6\u6570\u91cf\u5df2\u7ecf\u8fbe\u5230\u4e0a\u9650\uff0c\u8bf7\u5220\u9664\u4e4b\u524d\u7684\u6587\u4ef6\u518d\u4e0a\u4f20\u3002","incorrectFileType":"\u60a8\u4e0a\u4f20\u4e86\u4e00\u4e2a\u9519\u8bef\u7684\u6587\u4ef6\u7c7b\u578b\uff0c\u8bf7\u91cd\u8bd5\u3002","plupload":{"url":"/uploadfile?_xsrf={{handler.GetXSRF}}","flash_swf_url":"http:\/\/www.wpdaxue.com\/wp-includes\/js\/plupload\/plupload.flash.swf","filters":[{"title":"\u5141\u8bb8\u7684\u6587\u4ef6","extensions":"*"}],"multipart":true,"urlstream_upload":true}};
/* ]]> */
</script>


<script type='text/javascript' src='/static/mathemes/upload.js?ver=1427781470'></script>

  <div class="entry" itemprop="articleBody">
   <p style="text-align: center;color: #dd0000;font-weight: bold">========{% if message %} {{message}} {% end %} ========</p>
   <form class="wpuf-form-add" action="{{request.path}}" method="post">
       {%module xsrf_form_html() %}
    <ul class="wpuf-form">
     <li class="wpuf-el post_title p-title">
      <div class="wpuf-label">
       <label for="wpuf-post_title">文章标题 <span class="required">*</span></label>
      </div>
      <div class="wpuf-fields">
       <input class="textfield wpuf_post_title_3749" id="post_title" type="text" data-required="yes" data-type="text" name="post_title" placeholder="请输入文章标题" value="{% if article %} {{article['title']}} {% end %}" size="40" />
       <span class="wpuf-help"></span>
      </div>
     </li>

     <li class="wpuf-el category p-category">
      <div class="wpuf-label">
       <label for="wpuf-category">文章分类 <span class="required">*</span></label>
      </div>
      <div class="wpuf-fields wpuf_category_select_16422_3749">
       <select data-required="yes" data-type="select" name="category" id="category[]" class="category wpuf_category_3749">
           <option value="-1">— 选择 —</option>

           {% for item in handler.getCatelog %}
               {% if article %}
                    {% if ObjectId(article['cid']) == ObjectId(item['_id']) %}
                        <option class="level-0" value="{{item['_id']}}" selected="selected">{{item['name']}}</option>
                    {% else %}
                        <option class="level-0" value="{{item['_id']}}">{{item['name']}}</option>
                    {% end %}
               {% else %}
                    <option class="level-0" value="{{item['_id']}}">{{item['name']}}</option>
               {% end %}
           {% end %}
       </select>
       <span class="wpuf-help"></span>
      </div>
     </li>

<li class="wpuf-el post_file p-file">
        <div class="wpuf-label">
            <label for="wpuf-post_file">上传封面</label>
        </div>

        <div class="wpuf-fields">
            <div id="wpuf-post_file-upload-container">
                <div class="wpuf-attachment-upload-filelist" data-type="file" data-required="no">
                    <a id="wpuf-post_file-pickfiles" class="button file-selector  wpuf_post_file_3749" href="#">选择文件</a>
                    <ul class="wpuf-attachment-list thumbnails"></ul>
                </div>
            </div><!-- .container -->

            <span class="wpuf-help">可上传  jpg,jpeg,gif,png，最大 5M，文件名不能包含中文</span>

        </div> <!-- .wpuf-fields -->

        <script type="text/javascript">
            jQuery(function($) {
                new WPUF_Uploader('wpuf-post_file-pickfiles', 'wpuf-post_file-upload-container', 5, 'post_file', 'jpg,jpeg,gif,png,bmp,doc,ppt,pps,xls,mdb,docx,xlsx,pptx,odt,odp,ods,odg,odc,odb,odf,rtf,txt,zip,gz,gzip,rar,7z,', 5120);
            });
        </script>
            <!--<script type="text/javascript">-->

            <!--wpuf_conditional_items.push();-->

        <!--</script>-->
        </li>


     <li class="wpuf-el post_content p-content">
      <div class="wpuf-label">
       <label for="wpuf-post_content">文章内容 <span class="required">*</span></label>
      </div>
      <div class="wpuf-fields wpuf-rich-validation wpuf_post_content_3749" data-type="rich" data-required="yes" data-id="post_content">
       <!--<div id="wpuf-insert-image-container">-->
        <!--&lt;!&ndash;<a class="wpuf-button" id="wpuf-insert-image" href="#"> <span class="wpuf-media-icon"></span> 插入图片 </a>&ndash;&gt;-->
       <!--</div>-->
       <div id="wp-post_content-wrap" class="wp-core-ui wp-editor-wrap tmce-active">
        <!--<link rel="stylesheet" id="dashicons-css" href="http://www.wpdaxue.com/wp-includes/css/dashicons.min.css?ver=1427781470" type="text/css" media="all" />-->
        <!--<link rel="stylesheet" id="editor-buttons-css" href="http://www.wpdaxue.com/wp-includes/css/editor.min.css?ver=1427781470" type="text/css" media="all" />-->
        <!--<div id="wp-post_content-editor-tools" class="wp-editor-tools hide-if-no-js">-->
         <!--<div class="wp-editor-tabs">-->
          <!--&lt;!&ndash;<button type="button" id="post_content-tmce" class="wp-switch-editor switch-tmce" data-wp-editor-id="post_content">可视化</button>&ndash;&gt;-->
          <!--&lt;!&ndash;<button type="button" id="post_content-html" class="wp-switch-editor switch-html" data-wp-editor-id="post_content">文本</button>&ndash;&gt;-->
         <!--</div>-->
        <!--</div>-->
        <div id="wp-post_content-editor-container" class="wp-editor-container">
         <div id="qt_post_content_toolbar" class="quicktags-toolbar"></div>
         <textarea class="required" style="height: 50px" autocomplete="off" name="post_content" id="edit">{% if article %} {{article['content']}} {% end %}</textarea>
        </div>
       </div>
       <span class="wpuf-help"></span>
      </div>

     <script type="text/javascript">
            var ue = UE.getEditor('edit',
                    {
                        initialFrameWidth:750,
                        initialFrameHeight:300,
                        serverUrl: "/config",
                    }
            );
     </script>

     </li>

     <li class="wpuf-el about_post about-post">
      <div class="wpuf-label">
       <label for="wpuf-about_post">稿件说明</label>
      </div>
      <div class="wpuf-fields">
       <textarea class="textareafield  wpuf_about_post_3749" id="about_post" name="about_post" data-required="no" data-type="textarea" placeholder="关于你的稿件，如果有什么特殊说明，要和管理员说的，请填写在这里；没有的话，请留空，谢谢！" rows="3" cols="25"></textarea>
       <span class="wpuf-help"></span>
      </div>
     </li>

     <li class="wpuf-submit">
      <div class="wpuf-label">
        &nbsp;
      </div>
         <input type="hidden" id="_wpnonce" name="_wpnonce" value="962fcea17a" />
         <input type="hidden" name="_wp_http_referer" value="/user/new-post" />
         <input type="hidden" name="form_id" value="3749" />
         <input type="hidden" name="page_id" value="3747" />
         <input type="hidden" name="action" value="submit_post" />
         <input type="submit" name="submit" value="提交" class="btn" style="font-size: 15px;margin-top: 1px;"/>
         <input type="hidden" name="wpuf_form_status" value="new" />
         <input type="hidden" name="action" value="{% if article %}{{type}}{% else %}new{% end %}" />
         <input type="hidden" name="pid" value="{% if article %}{{article['_id']}}{% end %}" />
         <a href="#" class="btn" id="wpuf-post-draft">保存草稿</a>
     </li>
    </ul>
   </form>
   <!--<blockquote>-->
    <!--<p><strong style="line-height: 1.5em;">稿件要求：</strong></p>-->
    <!--<p>1. 原创WordPress主题、插件（代码规范，不含恶意代码，主题符合本站审美要求，3个月内有更新）<br /> 2. 原创WP使用或开发教程（翻译自老外博客或WP官方文档也可）<br /> 3. WP插件推荐及使用方法（必须自己亲自测试过，确保插件可以正常使用）<br /> 4. 不要转载国内其他网站的文章（自己博客的原创内容除外），不接受侵犯他人版权的内容（如他人的收费插件、收费主题等）以及本站认为不适合发布的内容。</p>-->
    <!--<p><strong>发布商品：</strong></p>-->
    <!--<p>1. 允许的商品类型：原创WordPress主题、插件、汉化资源（不要提交你汉化的别人的收费作品）<br /> 2. 商品必须打包上传到本站服务器，必须尽可能完善商品说明和注意事项<br /> 3. 商品购买和下载都是全自动处理，下载地址已加密<br /> 4. 本站承诺：尽一切可能保护好您的商品，不会泄露、倒卖您的商品；但由于非可控因素（服务器故障、黑客入侵等）导致您的权益受损的，本站不会承担相关责任<br /> 5. 当你在本站所得收入超过 300 元时，<strong>超出部分</strong>将收取 15% 作为平台服务费（提现时收取）<br /> 6. 一旦您在本站发布商品，说明您已清楚了解以上内容，并同意承担相应的风险和费用！</p>-->
    <!--<p><strong>编辑要求：</strong></p>-->
    <!--<p>1. 内容整洁，分点、分段合理<br /> 2. 尽量上传并插入相关图片到文章<br /> 3. 参考资料、代码出处、翻译来源等都需要在文章附上链接和说明<br /> 4. 代码需亲自测试有效且规范（缩进、合理换行、重要注释等）<br /> 5. 主题或插件推荐，需要提交比较完善的功能介绍和使用方法等（上传作品前台和后台截图）<br /> 6. 原创收费WP主题、插件，必须打包上传到本站服务器，以便实现本站在线充值购买下载；免费主题或插件如果有外部下载链接可以不用上传。</p>-->
    <!--<p><strong>特别提示：</strong></p>-->
    <!--<p>1. IE浏览器可能无法上传和插入文件，请使用非IE内核的浏览器，比如 Chrome、Firefox<br /> <strong>2. 添加代码的方法：</strong>在【可视化】模式编辑<strong>除代码外</strong>的所有内容，并为需要添加代码的地方预留位置（做好标记），然后切换到【文本】模式，根据代码类型点击编辑器右上角的 php、css、js、html 按钮插入一组&lt;pre&gt;标签，在 <span style="color: #ff6600;"><strong> </strong><span style="color: #ff0000;">&lt;/pre&gt; 的前面</span><strong> </strong></span>插入你的代码，最后发布文章。切记：<span style="color: #ff0000;">粘贴代码后，不要再切换回【可视化】，以免代码转义。</span><span style="color: #ff0000;"><span style="color: #333333;">如果没办法直接发代码（代码总是被转义），可以在文章插入代码的地方标注：代码1，代码2 ……，然后将对应的代码添加到 txt 文件中（同样标注），然后通过附件功能上传即可。</span></span><br /> 3. 未完成的文章请“保存为草稿”，直到真的完成才提交审核</p>-->
    <!--<p>本站已启动“投稿现金回馈”项目，请阅读：<a title="助力 WordPress大学，投稿最高奖励30元/篇" href="http://www.wpdaxue.com/contributions-to-wpdaxue.html" target="_blank" rel="bookmark">助力 WordPress大学，投稿最高奖励30元/篇</a></p>-->
   <!--</blockquote>-->
  </div>





                    </div>
                    <div class="clear"></div>


{% end %}